package cn.edu.csmzxy.rk233x.auth_system.exception;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
 * @author wumxing
 * @date 2025/10/15 9:55
 * @description
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class BusinessException extends RuntimeException {
    // 自定义状态码
    private Integer code;
    public BusinessException(Integer code, String message) {
        super(message);
        this.code = code;
    }
    public BusinessException(String message) {
        super(message);
        this.code = 500;  // 默认500系统错误
    }
}
